﻿<Window x:Class="CPPEI.WebApi.PackageTool.PackagingWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PackagingWindow" Height="350" Width="525" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="Margin" Value="3"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <TextBox Name="_ctlEditPath" Grid.Column="0" IsReadOnly="True"/>
            <Button Content="Browse" Name="_ctlBtnBrowse" Click="_ctlBtnBrowse_Click" Grid.Column="1"/>
        </Grid>
        <Grid Grid.Row="1" Name="_ctlPanelModule">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="90"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="Name:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" />
            <TextBlock Text="Assembly:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right"  />
            <TextBlock Text="Type:" Grid.Row="2" Grid.Column="0"  HorizontalAlignment="Right" />
            <TextBlock Text="{Binding Path=Name}" Grid.Row="0" Grid.Column="1"/>
            <TextBlock Text="{Binding Path=Assembly}" Grid.Row="1" Grid.Column="1"/>
            <TextBlock Text="{Binding Path=Type}" Grid.Row="2" Grid.Column="1"/>
        </Grid>
        <Grid Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <TextBlock Text="References:" Grid.Row="0"/>
            <ListBox Name="_ctlListRefs" Grid.Row="1">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="{Binding Path=Assembly}"/>
                            <TextBlock Text="{Binding Path=FilePath}"/>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Grid>
        <Grid Grid.Row="3">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <TextBlock Text="Actions:" Grid.Row="0"/>
            <ListBox Name="_ctlListActions" Grid.Row="1">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Vertical">
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Path=Scenario}"/>
                                <TextBlock Text=":"/>
                                <TextBlock Text="{Binding Path=Name}"/>
                            </StackPanel>
                            <TextBlock Text="{Binding Path=Type}"/>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Grid>
        <Button Content="Package" Name="_ctlBtnPackage" Click="_ctlBtnPackage_Click" Grid.Row="4"/>
    </Grid>
</Window>
